import request from '@/utils/request'

// 查询活动参与数据列表
export function listJoin(query) {
  return request({
    url: '/prod-api/activity/join/list',
    method: 'get',
    params: query
  })
}

// 查询活动参与数据详细
export function getJoin(joinUid) {
  return request({
    url: '/prod-api/activity/join/' + joinUid,
    method: 'get'
  })
}

// 新增活动参与数据
export function addJoin(data) {
  return request({
    url: '/prod-api/activity/join',
    method: 'post',
    data: data
  })
}

// 修改活动参与数据
export function updateJoin(data) {
  return request({
    url: '/prod-api/activity/join',
    method: 'put',
    data: data
  })
}

// 删除活动参与数据
export function delJoin(joinUid) {
  return request({
    url: '/prod-api/activity/join/' + joinUid,
    method: 'delete'
  })
}
